package com.mccken.temp.visitor;

import com.mccken.temp.resource.PPTFile;
import com.mccken.temp.resource.PdfFile;
import com.mccken.temp.resource.WordFile;

//...PPTFile、WordFile代码省略...
public class Extractor implements Visitor {
	public void extract2txt(PPTFile pptFile) {
		//... 
		System.out.println("Extract PPT.");
	}

	public void extract2txt(PdfFile pdfFile) {
		//... 
		System.out.println("Extract PDF.");
	}

	public void extract2txt(WordFile wordFile) {
		//... 
		System.out.println("Extract WORD.");
	}

	@Override
	public void visit(PPTFile pptFile) {
		
	}

	@Override
	public void visit(PdfFile pdfFile) {

	}

	@Override
	public void visit(WordFile wordFile) {

	}
}